package com.check.operation.base;

import android.app.Activity;

import androidx.fragment.app.Fragment;

import com.check.operation.view.MainActivity_;

public abstract class BaseFragment extends Fragment {

    public static final String BARCODE_ACTION = "android.intent.action.BARCODEDATA";
    public static final String BARCODE_RESULT = "barcode_result";

    public abstract void onGetBarValue(String barcode);

    public void refreshMsg(String msg) {
        Activity activity = getActivity();
        if(activity instanceof MainActivity_) {
            ((MainActivity_) activity).uidqmk(msg);
        }
    }

}
